<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/common/jsp/index_top.jsp"%>
<!-- navbar -->
<div data-ng-include=" '${rootTemplate}/blocks/adminHeader.htm' " class="app-header navbar">
</div>
<!-- / navbar -->

<!-- menu -->
<div data-ng-include=" '${rootPath}/nav.html' " class="app-aside hidden-xs {{app.settings.asideColor}}">
</div>
<!-- / menu -->

<!-- content -->
<div class="app-content">
  <div ui-butterbar></div>
  <a href class="off-screen-toggle hide" ui-toggle-class="off-screen" data-target=".app-aside" ></a>
  <div class="app-content-body fade-in-up" ui-view></div>
</div>
<!-- /content -->

<script>
  // seajs config
  G.path.modulePath="./";
  G.path.moduleResPath="${rootPath}/resource/config";
  G.path.moduleTemplatePath="${rootPath}/config";//模块资源位置

  seajs.on('error', function(module){
    if(module.status!=5){
      console.error('seajs error: ', module);
    }
  });
  //引入基础组件控制器和基础配置js，然后启动angular-js
  //Step2: bootstrap youself

  seajs.use(['js/componentController','js/appDirectives',
    'js/appFilters','js/appServices',
    G.path.moduleResPath+'/app'], function(appControllers,appDirectives,appFilters,appServices,app){
    angular.bootstrap(document, ['indexApp']);

  });

</script>

<%@include file="/common/jsp/index_bottom.jsp"%>
